/**
 * Copyright 2016-2018 mobaas.com
 */
package com.mobaas.devops.dao.mybatis;

import java.util.Date;
import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.mobaas.devops.dao.AccessLogDao;
import com.mobaas.devops.model.AccessLog;
import com.mobaas.devops.model.AccessTotal;

/**
 * 
 * @author billy zhang
 * 
 */
@Mapper
public interface AccessLogMapper extends AccessLogDao {

	@Override
	void insertAccessLog(AccessLog acclog);
	
	@Override
	List<AccessTotal> selectAccessTotalListByApp(
			@Param("appId")String appId, 
			@Param("start")Date startDate, 
			@Param("interval")int interval);

	@Override
	int selectAccessLogCountByApp(
			@Param("appId")String appId, 
			@Param("status")int status, 
			@Param("path")String path);

	@Override
	List<AccessLog> selectAccessLogListByApp(
			@Param("appId")String appId, 
			@Param("status")int status, 
			@Param("path")String path, 
			@Param("offset")int offset, 
			@Param("limit")int limit);
}
